package com.cskaoyan.bean;

import com.cskaoyan.domain.MarketCart;
import com.cskaoyan.domain.MarketCartExample;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@NoArgsConstructor
@Data
@AllArgsConstructor
public class CartIndex {

    @JsonProperty("cartTotal")
    private CartTotalDTO cartTotal;
    @JsonProperty("cartList")
    private List<MarketCart> cartList;

    @NoArgsConstructor
    @Data
    @AllArgsConstructor
    public static class CartTotalDTO {
        @JsonProperty("goodsCount")
        private Integer goodsCount;
        @JsonProperty("checkedGoodsCount")
        private Integer checkedGoodsCount;
        @JsonProperty("goodsAmount")
        private Integer goodsAmount;
        @JsonProperty("checkedGoodsAmount")
        private Integer checkedGoodsAmount;
    }


}
